<!DOCTYPE html>
<!-- 
	GeoEye Keynote Presentation Demonstration
	2011 Google Geospatial Awareness Day
	
	By: Alan Poole and Deke Young, GeoEye
	Date: August 24, 2011
 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>GeoEye-1 Satellite Pass Demonstration, 2011 Google
	Geospatial Awareness Day, GeoEye Keynote</title>
<script type="text/javascript"
	src="https://www.google.com/jsapi?key=ABQIAAAAMHzgPJvXPnl2p4bABkaCXhRimGqiYhdLemnilBW33CtvBu9uoxSq4N6qXZDmAg_SFP6A3nX6sZqFPg">
	
</script>
<script type="text/javascript">
	// the Google Earth API instance, once created
	var ge = null;

	// load the Google Earth API
	google.load("earth", "1");

	// function called to initialize the Google Earth API once the page is fully loaded
	function initGlobe() {
		// create a new instance of the Google Earth API in the map3d div
		// call the initCallback once the instance is successfully created
		// call the failureCallback if there is an isuse creating the instance
		google.earth.createInstance("map3d", initCallback, failureCallback);
	}

	// function called once the Google Earth API instance is successfully created
	function initCallback(object) {
		// grab the Google Earth API instance
		ge = object;

		// set the visibility of the instance to true
		ge.getWindow().setVisibility(true);

		// enable the default/auto natigation controls for the user
		ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);

		// create a new link object to laod a Google Earth KML document
		var link = ge.createLink('');

		// set the link to the Satellite Pass demonstration KML
		// downloads.geoeye.com is a Google Storage alias, where the demo is stored publically
		var href = 'http://downloads.geoeye.com/geoy-demo/2011/GoogleGeospatialAwarenessDay/earth_geoeyesatellitepass_demo_light_ge1.kmz'
		link.setHref(href);

		// create a new Googel Earth KML Netowrk link, set the link to the above
		var networkLink = ge.createNetworkLink('');
		networkLink.set(link, true, true); // Sets the link, refreshVisibility, and flyToView

		// add the network link to the Google Earth API instance
		ge.getFeatures().appendChild(networkLink);
	}

	// function called when there is an issue creating the Google Earth API
	function failureCallback(object) {
		alert("Google Earth globe could not be loaded.");
	}

	// add the initialize globe function to the on page load
	window.onload = initGlobe;
</script>
</head>

<body style="height: 100%; margin: 0; padding: 0;">
	<div id="map3d"
		style="border: 1px solid silver; height: 100%; width: 100%"
		onpaint="alert('painted')"></div>
</body>
</html>